<?php if(!defined('IN_PISCES')){exit('Access Denied.');}?>
<link href="{$this->data['baseurl']}css/tzm/bbs.css" rev="stylesheet" rel="stylesheet" type="text/css" media="screen">
{if !empty($this->data['adList']) && !empty($this->data['adList'][12])} 
<!--{loop $this->data['adList'][12] $mk $item}-->
<div class="adbox mb5"> {$item['code']} </div>
<!--{/loop}-->
        {else}
{/if}
<div id="container">
  <div class="clear"></div>
  <div id="container_body">
    <div id="container_l">
      <h3 class="h3">{$this->data['site']['site_name']}分享主题</h3>
      <div class="content-bottom-l-1">
        <div class="content-bottom-l-11"><span><a class="fl" href="{$this->data['baseurl']}" title="返回{$this->data['site']['site_name']}首页">返回首页</a></span><span><a class="fl" href="{url('Post','List')}" title="{$this->data['site']['site_name']}主题列表">主题列表</a></span></div>
        <div class="content-bottom-l-12"> <a title="发布新主题" href="{url('Post','Edit')}"><img src="{$this->data['baseurl']}images/post-btn.gif"></a> <a title="分享购物" href="{url('Post','Product')}"><img src="{$this->data['baseurl']}images/share-btn.gif"></a> </div>
      </div>
      <span class="description" title="{$this->data['site']['site_name']}精彩分享专区！">主题购物,网购粉们的精彩分享专区！</span>
      <div class="clear"></div>
      <div class="content-bottom-l-2">
        <div class="content-bottom-l-2-m">
          <div class="content-bottom-l-2-m1">
            <ul>
              <li><a title="主题购-最新主题列表" href="{url('Post','List')}" class="navcur">最新主题</a></li>
            </ul>
            <span>Tag：{TagList(array(),'id ASC',0,8,'id,name')}
            {if !empty($pvTagList['rows'])} 
            <!--{loop $pvTagList['rows'] $item}--> 
            {if $this->data['tag_id']==$item['id']}<a>{$item['name']}</a>{else}<a href="{url('Post','List',array('tag'=>$item['id']))}">{$item['name']}</a>{/if} 
            <!--{/loop}--> 
            {/if} </span>
            <div class="clear"></div>
          </div>
          <div class="content-bottom-l-2-m2"> 
            <!--列表开始-->
            <ul>
              {if !empty($this->data['postList'])} 
              <!--{loop $this->data['postList'] $mk $item}-->
              <li>
                <div class="m2-li-l">{if $item['content']['product']['image']}<a><img src="{$this->data['baseurl']}images/loading.gif" u="{EncodeImg $item['content']['product']['image']}"></a>{else}<img src="{$this->data['baseurl']}images/avatar-120.png">{/if}</div>
                <div class="m2-li-r"> {if $item['visit_num']>50}<span class="m2-li-r-1"><img src="{$this->data['baseurl']}images/post_hot.png" alt="热门贴子">{/if}<a target="_blank" title="{$item['title']}" href="{url('Post','View',array('id'=>$item['id']))}">{$item['title']}</a></span> <span class="m2-li-r-2"><a target="_blank" href="#">{$item['username']}</a>&nbsp;&nbsp;{$this->data['cf']->getBeforeTime($item['created'])},&nbsp;{$item['visit_num']}人围观过&nbsp;</span> </div>
                <div class="clear"></div>
                <div class="m2-li-rr m2-li-rr-old"> {if $item['content']['product']['image']}[购物分享]{else}[主题分享]{/if}</div>
              </li>
              <!--{/loop}--> 
              {/if}
            </ul>
            <!--列表结束-->
            <div class="clear"></div>
          </div>
          <div class="clear"></div>
          <div class="page-sep">
            <div class="pagination"> {$this->data['pages']}</div>
          </div>
        </div>
      </div>
    </div>
    <!--container_l结束-->
    <div id="container_r"> {if $this->data['user']}
      <div id="r_box_1_l">
        <div class="header_r"></div>
        <div class="user_nav">
          <div class="top">
            <div class="top-l"><a target="_blank" href="{url('User','Order')}"><img src="{$this->data[user]['logo']}" /></a></div>
            <div class="top-r"> <a target="_blank" href="{url('User','Order')}">{$this->data['user']['username']}</a>
              <div class="clear"></div>
              <div class="txt"> <a href="{url('Post','Edit')}" class="link1"><b>发表</b></a> </div>
              <div class="txt"> <a href="{url('Post','Product')}" class="link1"><b>晒单</b></a> </div>
              <div class="txt"> <a href="{url('User','Logout')}" class="link1"><b>注销</b></a> </div>
            </div>
            <div class="clear"></div>
          </div>
          <div class="box">
            <ul>
              {if $this->data['return']['rate']>0}
              <li><a href="{url('Return','Edit')}"><span>申请返现</span></a> </li>
              <li><a href="{url('Return','Index')}"><span>返现查询</span></a> </li>
              <li class="li-last"> <a href="{url('User','Password')}"><span>修改密码</span></a> </li>
              {/if}
            </ul>
            <div class="clear"></div>
          </div>
        </div>
      </div>
      {else}
      <div id="r_box_1_l">
        <div class="header_r"></div>
        <div class="user_nav">
          <div class="top">
            <div class="top-l"><a target="_blank" href="{url('User','Login')}"><img src="{$this->data['baseurl']}images/avatar-youke.png" /></a></div>
            <div class="top-r"> <a target="_blank" href="{url('User','Login')}">游客,您好,请登录</a>
              <div class="clear"></div>
              <div class="txt"> <a href="{url('User','Login')}" class="link1"><b>登录</b></a> </div>
              <div class="txt"> <a href="{url('User','Setup')}" class="link1"><b>注册</b></a> </div>
            </div>
            <div class="clear"></div>
          </div>
          <div class="box">
            <ul>
              <li class="li-last">注册为会员,有更多精彩! </li>
            </ul>
            <div class="clear"></div>
          </div>
        </div>
      </div>
      {/if} 
      <!-- 广告290*85 --> 
      {if !empty($this->data['adList']) && !empty($this->data['adList'][17])}
      <div class="clear"></div>
      <!--{loop $this->data['adList'][17] $mk $item}-->
      <div class="adbox mt5"> {$item['code']} </div>
      <!--{/loop}-->
      {/if} 
      {PostList(array('type'=>1,'status'=>1),'visit_num DESC,last_updated DESC',0,21,'id,username,title,visit_num',0,'site_index')}
      {if !empty($pvPostList)}
      <div class="content-bottom-r-3">
        <div class="content-bottom-r-31">
          <h3>热门主题</h3>
        </div>
        <div class="clear"></div>
        <div class="content-bottom-r-32">
          <ul>
            <!--{loop $pvPostList['rows'] $k $item}--> 
            <li {if $k<4}class="k_no{$k+1}"{else}class="k_no0"{/if}><a target="_blank" title="{$item['title']}" href="{url('Post','View',array('id'=>$item['id']))}">{$item['title']}...</a>
            </li>
            <!--{/loop}-->
          </ul>
        </div>
      </div>
      {/if}
      {PostList(array('type'=>2,'status'=>1),'visit_num DESC,last_updated DESC',0,21,'id,username,title,visit_num',0,'site_index')}
      {if !empty($pvPostList)}
      <div class="content-bottom-r-3">
        <div class="content-bottom-r-31">
          <h3>热门分享</h3>
        </div>
        <div class="clear"></div>
        <div class="content-bottom-r-32">
          <ul>
            <!--{loop $pvPostList['rows'] $k $item}--> 
            <li {if $k<4}class="k_no{$k+1}"{else}class="k_no0"{/if}><a target="_blank" title="{$item['title']}" href="{url('Post','View',array('id'=>$item['id']))}">{$item['title']}...</a>
            </li>
            <!--{/loop}-->
          </ul>
        </div>
      </div>
      {/if}
      {if !empty($this->data['adList']) && !empty($this->data['adList'][18])}
      <div class="clear"></div>
      <!--{loop $this->data['adList'][18] $mk $item}-->
      <div class="adbox mt5"> {$item['code']} </div>
      <!--{/loop}-->
      {/if} </div>
    <div class="clear"></div>
  </div>
  <div class="clear"></div>
</div>
{if !empty($this->data['adList']) && !empty($this->data['adList'][13])}
<div class="clear"></div>
<!--{loop $this->data['adList'][13] $mk $item}-->
<div class="adbox mt5"> {$item['code']} </div>
<!--{/loop}-->
{/if} 
<script language="javascript">
replaceImage();
</script> 
